<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<style type="text/css">
		#fa{
			width: 100%;
			height: 800px;
			display: flex;
			justify-content: center;
		}
		#glas{
			width: 600px;
			height: 100px;
			overflow: hidden;
		}
		#imgdiv{
			display: flex;
		}
		#imgdiv img{
			height: 100px;
			width: 100px;
		}
	</style>
	<body>
		<div id="fa">
			<div id="glas">
				<div id="imgdiv"  onmouseenter="mouseenter()" onmouseleave="mouseleave()">
					<img src="img/1%20(1).webp" >
					<img src="img/1%20(2).webp" >
					<img src="img/1%20(3).webp" >
					<img src="img/1%20(4).webp" >
					<img src="img/1%20(5).webp" >
					<img src="img/1%20(6).webp" >
					<img src="img/1%20(7).webp" >
					<img src="img/1%20(8).webp" >
					<img src="img/1%20(9).webp" >
					<img src="img/1%20(10).webp" >
					<img src="img/1%20(1).webp" >
					<img src="img/1%20(2).webp" >
					<img src="img/1%20(3).webp" >
					<img src="img/1%20(4).webp" >
					<img src="img/1%20(5).webp" >
					<img src="img/1%20(6).webp" >
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var num=0;
		var imgdivs=document.getElementById('imgdiv');
		var startget='';
		var clos='';
		function mouseenter(){
			clearInterval(startget);
			clearInterval(clos);
		}
		function mouseleave(){
			clearInterval(startget);
			start=setInterval(start,50);
		}
		function start(){
			clearInterval(clos);
			if(num%100==0){
				clos= setTimeout(function(){num--;},1000)
			}
			else{	num--;	}
			if(num==-1000){
				num=0;
			}
			imgdivs.style.marginLeft=num+'px';
			
		}
		onload=function(){
			start=setInterval(start,50);
		}
	</script>
</html>
